import "reflect-metadata"
import { DataSource } from "typeorm"
// import { user } from "./entity/user"

export const AppDataSource = new DataSource({
  type: "mysql",
  host: "localhost",
  port: 3306,
  username: "root",
  password: "root",
  database: "whattoeat",
  synchronize: true,
  logging: true,
  entities: ["src/entity/*.ts"],
  subscribers: [],
  migrations: [],
})

// {
//     "type": "mysql",
//     "host": "localhost",
//     "port": 3306,
//     "username": "root",
//     "password": "root",
//     "database": "whattoeat",
//     "synchronize": true,
//     "entities": ["src/entity/*.ts"],
//     "cli": {
//       "entitiesDir": "src/entity"
//     }
//   }
  
